/**
 * indexDB 索引重复错误类
 */
export default class IndexDBIndexReplicationError extends Error{

    constructor(dbName: string, tableName: string, version: number, indexName: string) {
        super(`\n\tDatabase: ${dbName}\n\tStore: ${tableName}\n\tDatabaseVersion: ${version}\n\tDuplicateIndex: ${indexName}`);
        Object.setPrototypeOf(this, IndexDBIndexReplicationError.prototype);
    }

}